<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
	<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
	<script type="text/javascript">
		function charu(id) {
			var form_post = parent.document.getElementById("textarea_addpost_root_base");
			form_post.value += '<div style="width:100%;text-align:center;"><a href="{{ settings.site_url }}'+id+'.image"><img class="sided" width="400px" src="{{ settings.site_url }}'+id+'.image"/></a></div>';
		}
	</script>
</head><body>
	{% if image %}
		<script type="text/javascript">charu("{{ image.key.id }}");</script>
	{% endif %}
	<form action="/upload_file_root.html" method="post" enctype="multipart/form-data">
		<div><input type="file" name="img" />
		<input type="submit" value="上传" /></div>
	</form>
</body></html>
